<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
{% comment %}
<!--
  Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
  - http://heavyz.blogspot.com/
  - http://buggarden.blogspot.com/
  
  Created on 2008-12-10.
  $Id: home.html 305 2008-12-19 12:51:21Z heavyzheng $
-->
{% endcomment %}

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta content="ZHENG Zhong" name="author"/>
    <link rel="shortcut icon" type="image/ico" href="/favicon.ico"/>
    <link rel="stylesheet" type="text/css" media="screen,print" href="{{ static_ }}/check/stylesheets/common.css"/>
    <title>Check Webapp</title>
  </head>
  
  <body>
  
    <div id="outer-wrapper">
      <h1>Checking webapp...</h1>
      <p>
        First of all, Python and Django is working! Here is a message from the Python program:
        `` <b>{{ message|default:""|escape }}</b> ''
      </p>
      <p>
        If you can see 6 girls in the photo below (Alessandra Ambrosio, Izabel Goulart, Miranda
        Kerr, Adriana Lima, Karolina Kurkova, and Selita Ebanks), it means the static directory is
        OK.
      <p>
      <p style="text-align: center;">
        <img style="margin: 0; padding: 4px; border: 1px solid #DDDDDD;"
             src="{{ static_ }}/check/images/sample.jpg"
             alt="6 girls, photo by Patrick Demarchelier"/>
      </p>
      <p>
        Session test result: <b>{{ session_test|escape }}</b>
      </p>
      <p>
        Note: if the session test failed, don't panic. It's possible if it is the first time that
        you visit this page. <a href=".">You can re-check it</a>.
      </p>
      <p>
        Database test result:
        {% if db_entry %}
          An entry with ID <b>{{ db_entry.key.id }}</b> has been saved or updated to database
          successfully. It has a timestamp of <b>{{ db_entry.timestamp }}</b> and it records your
          IP address <b>{{ db_entry.ip_addr }}</b>. It has been accessed
          <b>{{ db_entry.accessed }}</b> times.
        {% else %}
          Hmmm... It seems the database is not working properly... Make sure if the database has
          been synchronized with the models.
        {% endif %}
      </p>
      <p>
        If you can see a greeting message below, it means the webapp's URL prefix is OK.
      </p>
      <iframe style="border: 1px solid #DDDDDD;"
              src="{{ url_prefix_ }}/bonjour/"
              width="100%"
              height="60px"
              marginwidth="4px"
              marginheight="4px"
              frameborder="0"
              scrolling="auto">
      </iframe>
    </div><!--/#outer-wrapper-->
  
  </body>

</html>




